<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>SDL_gpu: GPU_CompileShader_RW</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SDL_gpu
   &#160;<span id="projectnumber">0.10.0</span>
   </div>
   <div id="projectbrief">A hardware-accelerated, cross-platform 2D graphics API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="group__ShaderInterface.html">Shader Interface</a></li>  </ul>
</div>
</div><!-- top -->
<div class="contents">
<table cellspacing="0" cellpadding="0" border="0">
  <tr>
   <td valign="top">
      <div class="navtab">
        <table>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gae598eedf926d4215be7f0d980016afaf.html#gae598eedf926d4215be7f0d980016afaf">GPU_ActivateShaderProgram</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga82577feec0703bf1c92f730455b99f62.html#ga82577feec0703bf1c92f730455b99f62">GPU_AttachShader</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga5ebb53aa97fe5419df956ba1f5428dea.html#ga5ebb53aa97fe5419df956ba1f5428dea">GPU_CompileShader</a></td></tr>
          <tr><td class="navtab"><a class="qindexHL" href="group__ShaderInterface_ga593b82dafb8e2f7ed5eb19df1ae8d8cc.html#ga593b82dafb8e2f7ed5eb19df1ae8d8cc">GPU_CompileShader_RW</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gab88b885a9c7b69f4ecbc93a091cf827c.html#gab88b885a9c7b69f4ecbc93a091cf827c">GPU_CreateShaderProgram</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga0c418855d2f7bea48ceb3826ab97c8f4.html#ga0c418855d2f7bea48ceb3826ab97c8f4">GPU_DeactivateShaderProgram</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga08e69c71f3c377eda77370b2d0d2cefa.html#ga08e69c71f3c377eda77370b2d0d2cefa">GPU_DetachShader</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga15a20e8f261efcd4d5a2706013ef4a89.html#ga15a20e8f261efcd4d5a2706013ef4a89">GPU_FreeShader</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gaeb6755d12eed82193e700fd7d7d8855f.html#gaeb6755d12eed82193e700fd7d7d8855f">GPU_FreeShaderProgram</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga8b227e37de346c48eabbe3108c975bc0.html#ga8b227e37de346c48eabbe3108c975bc0">GPU_GetAttributeLocation</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gadf68bfb77485570a2112c1204f0f2d75.html#gadf68bfb77485570a2112c1204f0f2d75">GPU_GetCurrentShaderProgram</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gade5b96ddf62935df7c189d22a292eccc.html#gade5b96ddf62935df7c189d22a292eccc">GPU_GetShaderMessage</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gaa41603fd7dcf0271ce70e62abbb0db28.html#gaa41603fd7dcf0271ce70e62abbb0db28">GPU_GetUniformfv</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gaec33b9d92eb97dd1cafbb6cdd5cbf1da.html#gaec33b9d92eb97dd1cafbb6cdd5cbf1da">GPU_GetUniformiv</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga974e602e392afa5af5f3b812725c5488.html#ga974e602e392afa5af5f3b812725c5488">GPU_GetUniformLocation</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gaab12bd5542ccd53e62cd9096a7dcd1cd.html#gaab12bd5542ccd53e62cd9096a7dcd1cd">GPU_GetUniformMatrixfv</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gae33ca4f9881432fa88291d82ba69b9c6.html#gae33ca4f9881432fa88291d82ba69b9c6">GPU_GetUniformuiv</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gac078dd5ff4a4e8550b72b1dd440b63b3.html#gac078dd5ff4a4e8550b72b1dd440b63b3">GPU_IsDefaultShaderProgram</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga430aa81d5a3c9e5519c114d3d80482ec.html#ga430aa81d5a3c9e5519c114d3d80482ec">GPU_LinkShaderProgram</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga78c6d1cdaca861e2ffc1688d82276bad.html#ga78c6d1cdaca861e2ffc1688d82276bad">GPU_LinkShaders</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gaa1a03315a0519e42b18ccdc757669242.html#gaa1a03315a0519e42b18ccdc757669242">GPU_LoadShader</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga3446d96e8ffc18e1ee84c11ea4660efb.html#ga3446d96e8ffc18e1ee84c11ea4660efb">GPU_LoadShaderBlock</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga9be36797e3b4d015877b5ae446a49d96.html#ga9be36797e3b4d015877b5ae446a49d96">GPU_MakeAttribute</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gaa0b5f6474c9d72650aa9ae1c14ab0b14.html#gaa0b5f6474c9d72650aa9ae1c14ab0b14">GPU_MakeAttributeFormat</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gab4dead917bb9d1c552ef112441e555ae.html#gab4dead917bb9d1c552ef112441e555ae">GPU_SetAttributef</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga49f51650abe2b0b20b4017d42c0f30e1.html#ga49f51650abe2b0b20b4017d42c0f30e1">GPU_SetAttributefv</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gae9579af7d4ace1ff2176a382886cd8c0.html#gae9579af7d4ace1ff2176a382886cd8c0">GPU_SetAttributei</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga73a724958644b3c45cbcbad67ffef26d.html#ga73a724958644b3c45cbcbad67ffef26d">GPU_SetAttributeiv</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga3cc5d7ebc8e781fdbc988c622d952573.html#ga3cc5d7ebc8e781fdbc988c622d952573">GPU_SetAttributeSource</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga80bd6e258ef3eb48c3502b6e829abc80.html#ga80bd6e258ef3eb48c3502b6e829abc80">GPU_SetAttributeui</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gaa25c469985276490caad4a4fc1c45166.html#gaa25c469985276490caad4a4fc1c45166">GPU_SetAttributeuiv</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga357c4ea4ee7a855460175709866b023e.html#ga357c4ea4ee7a855460175709866b023e">GPU_SetShaderBlock</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gabcb77794c1baef1453d1127f267fff27.html#gabcb77794c1baef1453d1127f267fff27">GPU_SetShaderImage</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gac08ed9fceb0208d7815b9a72233fdd69.html#gac08ed9fceb0208d7815b9a72233fdd69">GPU_SetUniformf</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga764a01bd4c40101d78fd67aaf0b170de.html#ga764a01bd4c40101d78fd67aaf0b170de">GPU_SetUniformfv</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gafd4b7ddc9fec24a527bf54266ca8f010.html#gafd4b7ddc9fec24a527bf54266ca8f010">GPU_SetUniformi</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga4bb05804d5ceef6593fdc5c5df5b3357.html#ga4bb05804d5ceef6593fdc5c5df5b3357">GPU_SetUniformiv</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga53760131c60517fb26174c3608f05a40.html#ga53760131c60517fb26174c3608f05a40">GPU_SetUniformMatrixfv</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gab2d235defea51ae75d903a9e6bd01d3f.html#gab2d235defea51ae75d903a9e6bd01d3f">GPU_SetUniformui</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gac723f1312e9fe36648a6604611375774.html#gac723f1312e9fe36648a6604611375774">GPU_SetUniformuiv</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga019df2414786f4bbca90dbd9538d53c6.html#ga019df2414786f4bbca90dbd9538d53c6">GPU_ShaderEnum</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_gab9a9916a0df123beb01868c563a078f1.html#gab9a9916a0df123beb01868c563a078f1">GPU_ShaderLanguageEnum</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="group__ShaderInterface_ga11924d725d1169559a3d21851fddb66e.html#ga11924d725d1169559a3d21851fddb66e">GPU_TypeEnum</a></td></tr>
        </table>
      </div>
   </td>
   <td valign="top" class="mempage">
<a class="anchor" id="ga593b82dafb8e2f7ed5eb19df1ae8d8cc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DECLSPEC Uint32 SDLCALL GPU_CompileShader_RW </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ShaderInterface_ga019df2414786f4bbca90dbd9538d53c6.html#ga019df2414786f4bbca90dbd9538d53c6">GPU_ShaderEnum</a>&#160;</td>
          <td class="paramname"><em>shader_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_RWops *&#160;</td>
          <td class="paramname"><em>shader_source</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Loads shader source from an SDL_RWops, compiles it, and returns the new shader object. </p>

</div>
</div>
    </td>
  </tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Feb 11 2015 20:10:46 for SDL_gpu by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
